<?php
!defined('APP_PATH')?define ('APP_PATH',Yii::getAlias('@backend').DIRECTORY_SEPARATOR):'';
!defined('FRONT_PATH')?define('FRONT_PATH',Yii::getAlias('@frontend').DIRECTORY_SEPARATOR):'';
!defined('CHARSET')?define ('CHARSET' ,'utf-8'):'';
!defined('IMG_PATH')?define('IMG_PATH',"uploads/"):'';
define('PHPCMS_PATH', dirname(__FILE__).DIRECTORY_SEPARATOR);
define('ADMINPAGENUM', '20');
define ('CACHE_PATH',Yii::getAlias('@backend').DIRECTORY_SEPARATOR.'runtime'.DIRECTORY_SEPARATOR);
define('SYS_TIME',time());

return [
    'aliases' => [
        '@bower' => '@vendor/bower-asset',
        '@npm'   => '@vendor/npm-asset',
    ],
    'vendorPath' => dirname(dirname(__DIR__)) . '/vendor',
    'components' => [
        'cache' => [
            'class' => 'yii\caching\FileCache',
        ],
    ],
];
